/*
 * clients.h
 *
 *  Created on: 2012. 4. 12.
 *      Author: jphong
 */

#ifndef CLIENTS_H_
#define CLIENTS_H_

#include 	"readBuffer.h"

#define	CLOSING		1

typedef struct ft_info {
	int			ft_id;
	int			connfd;
	int			state;
	char * 		address;
	char * 		filename;
	char *		component_id;     // buffer for reading a line
	char *		my_id;
	struct ft_info *	next;
} ft_info;

ft_info *createFT_info(int id, int flag);
ft_info* findFT_info(int id, int flag);
ft_info * getFTList(int flag);
void destroyFT_info(ft_info *c, int flag);

#endif /* CLIENTS_H_ */
